
CFLAGS = -g -Wall -Wextra $(OFLAGS)
OFLAGS = -DDEBUG
PACKCC=./packcc


all : wast

# option --debug to packcc

wast: wast.peg
	$(PACKCC) wast.peg
	$(CC) $(CFLAGS) wast.c -o wast
	cat t.wast |./wast >OO

clean :
	rm -f *~ *.o
	rm -v -f wast
	rm -v -f wast
	rm -v -f wast

